Repository navigation
feat(warden): Default to incremental review - #235
Merged
Merged
Conversation
Turn on incremental review in the org defaults so skills only re-review hunks changed since their last clean run on a PR. Keep security-review and integrity-review on full re-review for every push. Co-Authored-By: Jeffrey Hung <17494876+Jeffreyhung@users.noreply.github.com>
Jeffreyhung
added a commit
to getsentry/warden
that referenced
this pull request
Nov 24, 2026
Skills defined in a repo's `warden.toml` now inherit `defaults.incremental` from the base config. Before, `inheritRepoLayerDefaults` only passed down `incrementalApp`, so turning on incremental in the org config (getsentry/.github#235) only affected org-defined skills. A repo still controls its own skills: its own `[defaults] incremental`, or `incremental` on a skill or trigger, wins over the base value. Org-defined skills keep the mode the base config gives them, as before. Security tradeoff: when the org default is on, a repo-defined security-sensitive skill also becomes incremental unless that repo sets `incremental = false`. Baselines are still only trusted from the `incrementalApp` checks, so this doesn't change which runs can make Warden skip hunks. Docs: updated the Incremental Review section of the GitHub workflow page. <!-- junior-request-attribution:start --> via @Jeffreyhung. <!-- junior-request-attribution:end --> <!-- junior-session-footer:start --> <!-- junior-conversation-id:slack%3AC0ACFA5JBDX%3A1795544918.244879 --> -- [View Session](https://junior-prod.sentry.dev/conversations/slack%3AC0ACFA5JBDX%3A1795544918.244879) [[Sentry]](https://sentry.sentry.io/explore/conversations/slack%3AC0ACFA5JBDX%3A1795544918.244879/?project=4510944073809921) <!-- junior-session-footer:end --> --------- Co-authored-by: sentry-junior[bot] <264270552+sentry-junior[bot]@users.noreply.github.com> Co-authored-by: Jeffrey Hung <17494876+Jeffreyhung@users.noreply.github.com> Co-authored-by: getsantry[bot] <66042841+getsantry[bot]@users.noreply.github.com>
Jeffreyhung
marked this pull request as ready for review
November 24, 2026 19:12
dcramer
approved these changes
Nov 24, 2026
Jeffreyhung
approved these changes
Nov 24, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Turns on
incremental = truein the org Warden[defaults], so a skill only re-reviews hunks that changed since its last clean run on the PR.incrementalApp = "sentry-warden"was already set, so baselines come only from the Warden app's checks.security-reviewandintegrity-reviewsetincremental = falseand keep re-reviewing every hunk on every push. That leavescode-reviewas the only org skill that goes incremental.Open decision: Warden does not pass
defaults.incrementalfrom the base config down to repo-defined skills (inheritRepoLayerDefaultsin getsentry/wardenpackages/warden/src/config/loader.tsonly inheritsincrementalApp). So skills a repo defines in its ownwarden.tomlkeep full review unless that repo opts in. Making repos inherit this default needs a change in Warden.via @Jeffreyhung.
--
View Session [Sentry]